home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- // Copyright (C) 1997-1998 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: 13 April 1997
- // Author: gf
- //
- //
- // Procedure Name:
- // ModEditSurfacesMenu
- //
- // Description:
- // Create the MODELLING->EditSurfaces menu
- //
- // Input Arguments:
- // parent to parent the menu to.
- //
- // Return Value:
- // None.
- //
-
- proc modEditSurfacesMenuLabel( int $isAdvModel )
- {
- if( `optionVar -q modelWithToolDuplicateSurface` ) {
- menuItem -e
- -l "Duplicate NURBS Patches Tool"
- -annotation ("Duplicate NURBS Patches Tool: Select " +
- "NURBS Patch(es)")
- duplSrfItem;
- menuItem -e
- -annotation ("Duplicate NURBS Patches Tool Option Box")
- -l ("Duplicate NURBS Patch(es) Tool Option Box")
- duplSrfDialog;
- }
- else {
- menuItem -e
- -l "Duplicate NURBS Patches"
- -annotation ("Duplicate NURBS Patches: Select NURBS Patch(es)")
- duplSrfItem;
- menuItem -e
- -annotation ("Duplicate NURBS Patches Option Box")
- -l ("Duplicate NURBS Patches Option Box")
- duplSrfDialog;
- }
-
- if( `optionVar -q modelWithToolAttachSurface` ) {
- menuItem -e
- -l "Attach Surfaces Tool"
- -annotation ("Attach Surfaces Tool: Select two surfaces")
- attachSrfItem;
- menuItem -e
- -annotation ("Attach Surfaces Tool Option Box")
- -l ("Attach Surfaces Tool Option Box")
- attachSrfDialog;
- }
- else {
- menuItem -e
- -l "Attach Surfaces"
- -annotation ("Attach Surfaces: Select two surfaces")
- attachSrfItem;
- menuItem -e
- -annotation ("Attach Surfaces Option Box")
- -l ("Attach Surfaces Option Box")
- attachSrfDialog;
- }
-
- if( `optionVar -q modelWithToolDetachSurface` ) {
- menuItem -e
- -l "Detach Surfaces Tool"
- -annotation ("Detach Surfaces Tool: Select isoparm(s)")
- detachItem;
- menuItem -e
- -annotation ("Detach Surfaces Tool Option Box")
- -l ("Detach Surfaces Tool Option Box")
- detachDialog;
- }
- else {
- menuItem -e
- -l "Detach Surfaces"
- -annotation ("Detach Surfaces: Select isoparm(s)")
- detachItem;
- menuItem -e
- -annotation ("Detach Surfaces Option Box")
- -l ("Detach Surfaces Option Box")
- detachDialog;
- }
-
- if( `optionVar -q modelWithToolAlignSurface` ) {
- menuItem -e
- -l "Align Surfaces Tool"
- -annotation ("Align Surfaces Tool: Select two surfaces")
- alignItem;
- menuItem -e
- -annotation ("Align Surfaces Tool Option Box")
- -l ("Align Surfaces Tool Option Box")
- alignDialogItem;
- }
- else {
- menuItem -e
- -l "Align Surfaces"
- -annotation ("Align Surfaces: Select two surfaces")
- alignItem;
- menuItem -e
- -annotation ("Align Surfaces Option Box")
- -l ("Align Surfaces Option Box")
- alignDialogItem;
- }
-
- if( `optionVar -q modelWithToolInsertSurface` ) {
- menuItem -e
- -l "Insert Isoparms Tool"
- -annotation ("Insert Isoparms Tool: Select isoparm(s)")
- insertItem;
- menuItem -e
- -annotation ("Insert Isoparms Tool Option Box")
- -l ("Insert Isoparms Tool Option Box")
- insertDialog;
- }
- else {
- menuItem -e
- -l "Insert Isoparms"
- -annotation ("Insert Isoparms: Select isoparm(s)")
- insertItem;
- menuItem -e
- -annotation ("Insert Isoparms Option Box")
- -l ("Insert Isoparms Option Box")
- insertDialog;
- }
-
- if( $isAdvModel ) {
- if( `optionVar -q modelWithToolOffsetSurface` ) {
- menuItem -e
- -l "Offset Surfaces Tool"
- -annotation "Offset Surface Tool: Select NURBS surface(s)"
- surfOffsetItem;
- menuItem -e
- -annotation "Offset Surface Tool Option Box"
- -l "Offset Surface Tool Option Box"
- offsetSurfaceDialogItem;
- }
- else {
- menuItem -e
- -l "Offset Surfaces"
- -annotation "Offset Surface: Select NURBS surface(s)"
- surfOffsetItem;
- menuItem -e
- -annotation "Offset Surface Option Box"
- -l "Offset Surface Option Box"
- offsetSurfaceDialogItem;
- }
-
- if( `optionVar -q modelWithToolExtendSurface` ) {
- menuItem -e
- -l "Extend Surfaces Tool"
- -annotation "Extend Surfaces Tool: Select NURBS surface(s)"
- extendSrfItem;
- menuItem -e
- -annotation "Extend Surfaces Tool Option Box"
- -l "Extend Surfaces Tool Option Box"
- extendSurfaceDialogItem;
- }
- else {
- menuItem -e
- -l "Extend Surfaces"
- -annotation "Extend Surfaces: Select surface(s)"
- extendSrfItem;
- menuItem -e
- -annotation "Extend Surfaces Option Box"
- -l "Extend Surfaces Option Box"
- extendSurfaceDialogItem;
- }
- }
-
- if( `optionVar -q modelWithToolGlobalStitch` ) {
- menuItem -e
- -l "Global Stitch Tool"
- -annotation "Global Stitch Tool: Select NURBS surfaces"
- globalStitchItem;
- menuItem -e
- -annotation "Global Stitch Tool Option Box"
- -l "Global Stitch Tool Option Box"
- globalStitchDialogItem;
- }
- else {
- menuItem -e
- -l "Global Stitch"
- -annotation "Global Stitch: Select NURBS surfaces"
- globalStitchItem;
- menuItem -e
- -annotation "Global Stitch Option Box"
- -l "Global Stitch Option Box"
- globalStitchDialogItem;
- }
-
- if( `optionVar -q modelWithToolCircFillet` ) {
- menuItem -e
- -l "Circular Fillet Tool"
- -annotation "Circular Fillet Tool: Select two NURBS surfaces"
- circularFilletItem;
- menuItem -e
- -annotation "Circular Fillet Tool Option Box"
- -l "Circular Fillet Tool Option Box"
- circularFilletDialogItem;
- }
- else {
- menuItem -e
- -l "Circular Fillet"
- -annotation "Circular Fillet: Select two surfaces"
- circularFilletItem;
- menuItem -e
- -annotation "Circular Fillet Option Box"
- -l "Circular Fillet Option Box"
- circularFilletDialogItem;
- }
-
- if( `optionVar -q modelWithToolFreeFillet` ) {
- menuItem -e
- -l "Freeform Fillet Tool"
- -annotation ("Freeform Fillet Tool: Select two curves " +
- "on surface, isoparms or trim edges")
- freeFormFilletItem ;
- menuItem -e
- -annotation "Freeform Fillet Tool Option Box"
- -l "Freeform Fillet Tool Option Box"
- freeFormFilletDialogItem;
- }
- else {
- menuItem -e
- -l "Freeform Fillet"
- -annotation ("Freeform Fillet: Select two curves " +
- "on surface, isoparms or trim edges")
- freeFormFilletItem ;
- menuItem -e
- -annotation "Freeform Fillet Option Box"
- -l "Freeform Fillet Option Box"
- freeFormFilletDialogItem;
- }
-
- if( `optionVar -q modelWithToolProject` ) {
- menuItem -e
- -l "Project Curve On Surface Tool"
- -annotation ( "Project Curve On Surface Tool: Select curve(s), isoparm(s)" +
- " or trim edge(s) and a target surface" )
- projectCurveItem;
- menuItem -e
- -annotation "Project Curve On Surface Tool Option Box"
- -l "Project Curve On Surface Tool Option Box"
- projectCurveDialogItem;
- }
- else {
- menuItem -e
- -l "Project Curve On Surface"
- -annotation ( "Project Curve On Surface: Select curve(s), isoparm(s)" +
- " or trim edge(s) and a target surface" )
- projectCurveItem;
- menuItem -e
- -annotation "Project Curve On Surface Option Box"
- -l "Project Curve On Surface Option Box"
- projectCurveDialogItem;
- }
-
- if( `optionVar -q modelWithToolIntersect` ) {
- menuItem -e
- -l "Intersect Surfaces Tool"
- -annotation ( "Intersect Surfaces Tool: Select two or more " +
- "surfaces " +
- "- the last surface intersects all the other ones" )
- intersectItem;
- menuItem -e
- -annotation "Intersect Surfaces Tool Option Box"
- -l "Intersect Surfaces Tool Option Box"
- intersectDialogItem;
- }
- else {
- menuItem -e
- -l "Intersect Surfaces"
- -annotation ( "Intersect Surfaces: Select two or more " +
- "surfaces " +
- "- the last surface intersects all the other ones" )
- intersectItem;
- menuItem -e
- -annotation "Intersect Surfaces Option Box"
- -l "Intersect Surfaces Option Box"
- intersectDialogItem;
- }
-
- if( `optionVar -q modelWithToolCloseSurface` ) {
- menuItem -e
- -l "Open/Close Surfaces Tool"
- -annotation ( "Open/Close Surfaces Tool: Select surface(s) " +
- "or isoparm(s) to give direction" )
- closeItem;
- menuItem -e
- -annotation "Open/Close Surfaces Tool Option Box"
- -l "Open/Close Surfaces Tool Option Box"
- closeDialogItem;
- }
- else {
- menuItem -e
- -l "Open/Close Surfaces"
- -annotation ( "Open/Close Surfaces: Select surface(s) " +
- "or isoparm(s) to give direction" )
- closeItem;
- menuItem -e
- -annotation "Open/Close Surfaces Option Box"
- -l "Open/Close Surfaces Option Box"
- closeDialogItem;
- }
-
- if( `optionVar -q modelWithToolReverseSurface` ) {
- menuItem -e
- -l "Reverse Surface Direction Tool"
- -annotation ( "Reverse Surfaces Tool: Select surface(s) " +
- "or isoparm(s) to give direction" )
- reverseItem;
- menuItem -e
- -annotation "Reverse Surfaces Tool Option Box"
- -l "Reverse Surfaces Tool Option Box"
- reverseDialogItem;
- }
- else {
- menuItem -e
- -l "Reverse Surface Direction"
- -annotation ( "Reverse Surfaces: Select surface(s) " +
- "or isoparm(s) to give direction" )
- reverseItem;
- menuItem -e
- -annotation "Reverse Surfaces Option Box"
- -l "Reverse Surfaces Option Box"
- reverseDialogItem;
- }
-
- if( `optionVar -q modelWithToolRebuildSurface` ) {
- menuItem -e
- -l "Rebuild Surfaces Tool"
- -annotation "Rebuild Surfaces Tool: Select surface(s)"
- rebuildSrfItem;
- menuItem -e
- -annotation "Rebuild Surfaces Tool Option Box"
- -l "Rebuild Surfaces Tool Option Box"
- rebuildSurfaceDialogItem;
- }
- else {
- menuItem -e
- -l "Rebuild Surfaces"
- -annotation "Rebuild Surfaces: Select surface(s)"
- rebuildSrfItem;
- menuItem -e
- -annotation "Rebuild Surfaces Option Box"
- -l "Rebuild Surfaces Option Box"
- rebuildSurfaceDialogItem;
- }
-
- if( `optionVar -q modelWithToolUntrim` ) {
- menuItem -e
- -l "Untrim Surfaces Tool"
- -annotation "Untrim Surfaces Tool: Select a trimmed surface"
- untrimItem;
- menuItem -e
- -annotation "Untrim Surfaces Tool Option Box"
- -l "Untrim Surfaces Tool Option Box"
- untrimDialogItem;
- }
- else {
- menuItem -e
- -l "Untrim Surfaces"
- -annotation "Untrim Surfaces: Select a trimmed surface"
- untrimItem;
- menuItem -e
- -annotation "Untrim Surfaces Option Box"
- -l "Untrim Surfaces Option Box"
- untrimDialogItem;
- }
- }
-
- global proc ModEditSurfacesMenu( string $parent )
- {
- if( ! `isTrue "SurfaceUIExists"` ) return;
-
- // If this ever changes to true, we have to make sure
- // we don't dim the tools. So, don't just change the
- // value. Milan S.
- int $dimWhenNoSelect = 0;
-
- setParent -m $parent;
- int $isAdvModel = `licenseCheck -m "edit" -typ "model"`;
- if( `menu -q -ni $parent` != 0 ) {
- //
- // Menu is built already - just relabel and return
- //
- modEditSurfacesMenuLabel( $isAdvModel );
- return;
- }
-
- menuItem
- -c "DuplicateNURBSPatches"
- -dmc "duplicateSurfaceToolScript 2"
- -i "duplicateSurface.xpm"
- duplSrfItem;
- menuItem -optionBox true -i "duplicateSurface.xpm"
- -c "DuplicateNURBSPatchesOptions"
- duplSrfDialog;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|attachSrfItem");
-
- menuItem -d true;
-
- // project + interesect + trim + untrim.
- //
- menuItem
- -c "ProjectCurveOnSurface"
- -dmc "projectToolScript 2"
- -i "projectCurve.xpm"
- projectCurveItem;
- menuItem -optionBox true
- -i "projectCurve.xpm"
- -c "ProjectCurveOnSurfaceOptions"
- projectCurveDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|projectCurveItem") ;
-
- menuItem
- -c "IntersectSurfaces"
- -dmc "intersectToolScript 2"
- -i "srfIntersect.xpm"
- intersectItem;
- menuItem -optionBox true
- -i "srfIntersect.xpm"
- -c "IntersectSurfacesOptions"
- intersectDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|intersectItem") ;
-
- menuItem -l "Trim Tool"
- -annotation "Trim Tool: Select a surface with a curve on it"
- -image "trim.xpm"
- -c "TrimTool" trimSurfaceItem;
- menuItem -optionBox true -image "trim.xpm"
- -annotation "Trim Tool Option Box"
- -l "Trim Tool Option Box"
- -c "TrimToolOptions" trimDialogItem;
-
- menuItem
- -c "UntrimSurfaces"
- -dmc "untrimToolScript 2"
- -image "untrim.xpm"
- untrimItem;
- menuItem -optionBox true -image "untrim.xpm"
- -c "UntrimSurfacesOptions"
- untrimDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|untrimItem");
-
- menuItem -d true;
-
- // booleans.
- //
- if( $isAdvModel ) {
- menuItem -l "Booleans" -sm 1 -to 1 -aob true;
- menuItem -l "Union Tool"
- -c "SurfaceBooleanUnionTool"
- -dmc "nurbsBooleanToolScript 2 0"
- -annotation "Union Tool: Select two sets of NURBS surfaces"
- -image "nurbsShellUnion.xpm"
- booleanUnionItem;
- menuItem -optionBox true -image "nurbsShellUnion.xpm"
- -annotation "Union Option Box"
- -l "NURBS Boolean Union Option Box"
- -c "SurfaceBooleanUnionToolOptions"
- unionOptItem;
-
- menuItem -l "Subtract Tool"
- -c "SurfaceBooleanSubtractTool"
- -dmc "nurbsBooleanToolScript 2 1"
- -annotation "Subtract Tool: Select two sets of NURBS surfaces"
- -image "nurbsShellSubtract.xpm"
- booleanSubtractItem;
- menuItem -optionBox true -image "nurbsShellSubtract.xpm"
- -annotation "Subtract Option Box"
- -l "NURBS Boolean Subtract Option Box"
- -c "SurfaceBooleanSubtractToolOptions"
- subtractOptItem;
-
- menuItem -l "Intersect Tool"
- -c "SurfaceBooleanIntersectTool"
- -dmc "nurbsBooleanToolScript 2 2"
- -annotation "Intersect Tool: Select two sets of NURBS surfaces"
- -image "nurbsShellIntersect.xpm"
- booleanIntersectItem;
- menuItem -optionBox true -image "nurbsShellIntersect.xpm"
- -annotation "Intersect Option Box"
- -l "NURBS Boolean Intersectt Option Box"
- -c "SurfaceBooleanIntersectToolOptions"
- intersectOptItem;
- setParent -m ..;
- menuItem -d true;
- }
-
- // Attach + detach + Align + Open(close).
- //
- menuItem
- -c "AttachSurfaces"
- -dmc "attachSrfToolScript 2"
- -i "align.xpm"
- attachSrfItem;
- menuItem -optionBox true -i "align.xpm"
- -c "AttachSurfacesOptions"
- attachSrfDialog;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|attachSrfItem");
-
- // attach with gap fill
- //
- menuItem -l "Attach Without Moving"
- -annotation "Attach two surfaces by filling the gap between the two surfaces."
- -c "attachWithoutMoving" attachWithoutMovingItem;
-
- menuItem
- -c "DetachSurfaces"
- -dmc "detachSurfaceToolScript 2"
- -i "detach.xpm"
- detachItem;
- menuItem -optionBox true -i "detach.xpm"
- -c "DetachSurfacesOptions"
- detachDialog;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|detachItem");
-
- menuItem
- -c "AlignSurfaces"
- -dmc "alignSurfaceToolScript 2"
- -i "alignSurface.xpm"
- alignItem;
- menuItem -optionBox true -i "alignSurface.xpm"
- -c "AlignSurfacesOptions"
- alignDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|alignItem");
-
- menuItem
- -c "OpenCloseSurfaces"
- -dmc "closeSurfaceToolScript 2"
- -i "openCloseSurface.xpm"
- closeItem;
- menuItem -optionBox true -i "openCloseSurface.xpm"
- -c "OpenCloseSurfacesOptions"
- closeDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|closeItem");
-
-
- // move seam mel script
- //
- menuItem -l "Move Seam"
- -annotation "Move seam on a periodic surface: Select isoparm for new seam location"
- -c "moveNurbsSurfaceSeam" moveSurfaceSeamItem;
-
- menuItem -d true ;
-
- menuItem
- -c "InsertIsoparms"
- -dmc "insertSurfaceToolScript 2"
- -i "insert.xpm"
- insertItem;
- menuItem -optionBox true -i "insert.xpm"
- -c "InsertIsoparmsOptions"
- insertDialog;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|insertItem");
-
- if( $isAdvModel ) {
- menuItem
- -c "ExtendSurfaces"
- -dmc "extendSurfaceToolScript 2"
- -i "extendSurface.xpm"
- extendSrfItem;
- menuItem -optionBox true -i "extendSurface.xpm"
- -c "ExtendSurfacesOptions"
- extendSurfaceDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|extendSrfItem");
-
- menuItem
- -c "OffsetSurfaces"
- -dmc "offsetSurfaceToolScript 2"
- -i "offsetSurface.xpm"
- surfOffsetItem;
- menuItem -optionBox true
- -i "offsetSurface.xpm"
- -c "OffsetSurfacesOptions"
- offsetSurfaceDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|surfOffsetItem") ;
- }
-
- menuItem
- -c "ReverseSurfaceDirection"
- -dmc "reverseSurfaceToolScript 2"
- -i "reverseSurface.xpm"
- reverseItem;
- menuItem -optionBox true -i "reverseSurface.xpm"
- -c "ReverseSurfaceDirectionOptions"
- reverseDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|reverseItem");
-
- menuItem -d true ;
-
- // rebuild.
- //
- menuItem
- -c "RebuildSurfaces"
- -dmc "rebuildSurfaceToolScript 2"
- -i "rebuildSurface.xpm"
- rebuildSrfItem;
- menuItem -optionBox true -i "rebuildSurface.xpm"
- -c "RebuildSurfacesOptions"
- rebuildSurfaceDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|rebuildSrfItem");
-
- menuItem -d true;
-
- // round + surface fillet.
- //
- if( $isAdvModel ) {
- menuItem -l "Round Tool"
- -annotation "Round Tool: Select pairs of surface edges that meet"
- -image "roundSrf.xpm"
- -c "RoundTool" roundItem;
- menuItem -optionBox true -image "roundSrf.xpm"
- -annotation "Round Tool Option Box"
- -l "Round Tool Option Box"
- -c "RoundToolOptions"
- roundOptionItem;
- }
-
- menuItem -l "Surface Fillet" -sm 1 -to 1 -aob true;
- menuItem
- -c "CircularFillet"
- -dmc "circFilletToolScript 2"
- -i "surfaceFillet.xpm"
- circularFilletItem;
- menuItem -optionBox true
- -i "surfaceFillet.xpm"
- -c "CircularFilletOptions"
- circularFilletDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|circularFilletItem") ;
-
- menuItem
- -c "FreeformFillet"
- -dmc "freeFilletToolScript 2"
- -i "filletFreeform_S.xpm"
- freeFormFilletItem ;
- menuItem -optionBox true
- -i "filletFreeform_S.xpm"
- -c "FreeformFilletOptions"
- freeFormFilletDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|freeFormFilletItem");
-
- menuItem -l "Fillet Blend Tool"
- -c "FilletBlendTool"
- -dmc "blendToolScript 2"
- -annotation ("Fillet Blend Tool: Select curves " +
- "on surface, isoparms or trim edges")
- -image "blendSurface.xpm"
- blendItem;
- menuItem -optionBox true -image "blendSurface.xpm"
- -annotation "Fillet Blend Tool Option Box"
- -l "Fillet Blend Tool Option Box"
- -c "FilletBlendToolOptions"
- blendDialogItem;
- setParent -m .. ;
- menuItem -d true;
-
-
- // Stitch
- //
-
- menuItem -l "Stitch" -sm 1 -to 1 -aob true;
-
- menuItem -l "Stitch Surface Points"
- -c "StitchSurfacePoints"
- -dmc "performStitchSurfacePoints(2)"
- -annotation ( "Stitch Surface Points: Select edge points " +
- "and/or edge CV's on the surface" )
- -i "stitchSurfacePoints.xpm"
- stitchSurfacePointsItem;
- menuItem -optionBox true
- -annotation "Stitch Surface Points Option Box"
- -l "Stitch Surface Points Option Box"
- -i "stitchSurfacePoints.xpm"
- -c "StitchSurfacePointsOptions"
- stitchSurfacePointsDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|stitchSurfacePointsItem") ;
-
- menuItem -l "Stitch Edges Tool"
- -annotation "Stitch Edges Tool: Select two isoparms"
- -image "stitchSrf.xpm"
- -c "StitchEdgesTool" surfStitchItem;
- menuItem -optionBox true -image "stitchSrf.xpm"
- -annotation "Stitch Tool Option Box"
- -l "Stitch Tool Option Box"
- -c "StitchEdgesToolOptions" stitchSrfDialogItem;
-
- menuItem
- -c "GlobalStitch"
- -dmc "globalStitchToolScript 2"
- -image "globalStitch.xpm"
- globalStitchItem;
- menuItem -optionBox true
- -image "globalStitch.xpm"
- -c "GlobalStitchOptions"
- globalStitchDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|globalStitchItem") ;
-
- setParent -m .. ;
-
- if (`isTrue "NurbsExists"`) {
- menuItem -d true;
-
- menuItem -l "Sculpt Surfaces Tool"
- -image "putty.xpm"
- -annotation "Sculpt Surfaces Tool: Sculpt a NURBS surface"
- -c "SculptSurfacesTool" puttyItem;
- menuItem -optionBox true -image "putty.xpm"
- -annotation "Sculpt Surfaces Tool Option Box"
- -l "Sculpt Surfaces Tool Option Box"
- -c "SculptSurfacesToolOptions"
- puttyDialogItem;
- menuItem -l "Surface Editing" -sm 1 -to 1 -aob true;
-
- menuItem -l "Surface Editing Tool"
- -annotation "Surface Editing Tool: Select a surface"
- -image "surfaceEditor.xpm"
- -c "SurfaceEditingTool"
- surfaceEditorItem;
- menuItem -optionBox true -image "surfaceEditor.xpm"
- -annotation "Surface Editing Tool Option Box"
- -l "Surface Editing Tool Option Box"
- -c "SurfaceEditingToolOptions"
- surfaceEditorDialogItem;
-
- menuItem -l "Break Tangent"
- -annotation ("Break Tangent: Select an isoparm or " +
- "a surface point")
- -c "BreakTangent"
- breakTangentItem;
-
- menuItem -l "Smooth Tangent"
- -annotation ("Smooth Tangent: Select an isoparm or " +
- "a surface point")
- -c "SmoothTangent"
- smoothTangentItem;
-
- setParent -m ..;
- }
-
- menuItem -d true;
-
- menuItem -l "Selection" -sm 1 -to 1 -aob true;
-
- menuItem -l "Grow CV Selection"
- -ann "Grow CV Selection: Grow the selected CV region along the NURBS surface"
- -c "nurbsSelect -gs 1";
-
- menuItem -l "Shrink CV Selection"
- -ann "Shrink CV Selection: Shrink the selected region along the NURBS surface"
- -c "nurbsSelect -ss 1";
-
- menuItem -l "Select CV Selection Boundary"
- -ann "Select CV Selection Boundary: Select the boundary of the current selection region"
- -c "nurbsSelect -bs";
-
- menuItem -l "Select Surface Border"
- -ann "Select Surface Border: Select all CV along the given borders"
- -c "performSelectNurbsBorder 0";
-
- menuItem -optionBox 1 -l "Select Surface Border Option Box"
- -ann "Select Surface Border Option Box" -ecr false
- -c "performSelectNurbsBorder 1" ;
-
- setParent -m ..;
-
- modEditSurfacesMenuLabel( $isAdvModel );
- }
-